package com.pzhu.record.mapper;

import com.pzhu.record.entity.Teacher;
import org.apache.ibatis.annotations.Param;

public interface TeacherMapper {
    int deleteByPrimaryKey(String teacherId);

    int insert(Teacher record);

    int insertSelective(Teacher record);

    Teacher selectByPrimaryKey(String teacherId);

    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);

    /**
     * 通过用户名与密码查询对象
     *
     * @param teacherId
     * @param teacherPassword
     * @return
     */
    Teacher selectByIdOrpass(@Param("userId") String teacherId, @Param("password") String teacherPassword);

}